@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

#app{
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0 !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus{
  outline: none;
 }

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

fieldset{
  border: 1px solid #ebeef5!important;
  color:#9b9a9a;
  font-size: 14px;
}

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  a {
    color: #337ab7;
    cursor: pointer;
    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.warn-content{
  background: rgba(66,185,131,.1);
  border-radius: 2px;
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: .05rem;
  a{
    color: #42b983;
    font-weight: 600;
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
  .subtitle {
    font-size: 20px;
    color: #fff;
  }
  &.draft {
    background: #d0d0d0;
  }
  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;
  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;
  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

/// by
.by-split-line{
  border: 1px solid #e6e6e6;
  margin-bottom: 16px!important;
}
.el-container-by{
  display: flex;
  flex-direction: column;
  height: 100%;
  .el-container-box{
    display: flex;
    flex-direction: row;
    flex: 1;
  }
}

.by-center{
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 0;
}
.el-table{
  font-size: 12px;
  &:hover{
    cursor:pointer
  }
  //th,td{
  //  word-break: keep-all!important;
  //  div{
  //    word-break: keep-all!important;
  //  }
  // }
}
.by-box{
  display: flex;
  flex-flow:column;
  flex:1;
  padding: 10px 10px 0 10px;
}
.by-search-box{
  position: relative;
  overflow:hidden;
  border: .4px solid #ebeef5;
  margin: 4px 0;
  transition: height 0.5s;
  box-sizing: border-box;
  padding: 0 8px;
  height:0;
}
.by-null{
  color: #fff;
  opacity: 1;
}
.by-right{
  text-align: right;
}
.by-left{
  text-align: left;
}
.by-center{
  text-align: center;
}
.by-center-round{
  display: flex;
  justify-content: center;
  align-items: center;
}
.by-page{
  height: 40px;
  box-sizing: border-box;
  padding: 2px 5px;
}
.by-flex{
  display: flex;
  flex:1;
}
.by-input{
  width: 187.1111px;
}
.by-input-all{
  width: 187.111px!important;
}
.by-input-time{
  width: 170px;
}
.by-input-remark{
  width: 454px
}
.el-dialog__body{
  padding: 8px 20px;
}
.el-dialog__header {
  padding: 15px 15px 0 10px ;
}
#by-order-el-dialog{
  .el-dialog{
    margin-top: 20px!important;
    width: 80%!important;
  }
}
.el-form-item {
  margin-bottom: 8px;
}
.w185{
  width: 185px!important;
}
.el-select{
  width: 185px
}
.el-card{
  margin-bottom: 8px;
}
.r10{
  display: inline-block;
  margin-right: 10px;
}
.el-tag{
  margin-right: 8px;
}
.by-box-pd-12{
  box-sizing: border-box;
  padding-left: 12px !important;
}
.by-over-y{
  overflow-y: visible;
  margin: 0 4px;
}
.by-order-card{
  .el-card__header{
    padding: 10px 12px 4px 12px;
  }
  .order-item{
    margin-bottom: 6px;
  }
  fieldset{
    margin-bottom: 14px;
    border: 1px solid #ccc;
  }
}
.order-split-box{
  position: relative;
  padding-left: 30px;
}
.order-card-search input{
  border-radius: 16px;
}
.order-card-ul{
  padding: 0 16px 0 0;
  margin: 0;
  .order-card-li{
    list-style-type:none;
    margin-bottom: 4px;
    border-bottom: 1px solid #ebeef5;
    .order-card-li-right{
      float: right;
    }
  }
}

.order-wareHorse-search{
  position: relative;
  .order-search{
    position: absolute;
    z-index: 99;
    top: -3px;
    left: 155px;
    opacity: 0.8;
    height: 16px;
  }
  .order-wareHorse-select{
    input{
      border-radius: 16px !important;
    }
  }
}
.order-percentage{
  .el-progress__text{
    font-size:30px!important;
  }
}
.by-relative{
  position: relative;
}
.order-percentage-span{
  position: absolute;
  display: inline-block;
  text-align: center;
  bottom: -20px;
  font-size: 14px;
}
#by-order-breakBill .el-dialog{
  width: 830px!important;
}
.el-dialog .el-dialog__header{
  border-bottom: 1px solid #e6e6e6;
}
.el-form-item__label{
  font-size: 12px!important;
  font-weight: 400!important;
}
.el-form-item__content{
  font-weight: 700!important;
}
.by-order-break-number {
  width: 86px!important;
}
.by-hr{
  border: .5px solid #e6e6!important;
}
.el-button--small, .el-button--small.is-round{
  //padding: 4px 10px;
}
.by-table{
  th,td{
    border: 1px solid #ebeef5;
    padding: 5px 8px;
    text-align: center;
  }
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}
fieldset{
  margin-bottom: 8px !important;
}
.el-card__header{
  padding: 5px 12px;
  line-height: 22px;
}
.by-print-page-test{
  display: none;

}
@media print {
  .page {
    margin:0;
    border:initial;
    border-radius:initial;
    width:initial;
    min-height:initial;
    box-shadow:initial;
    background:initial;
    page-break-after:always;
  }
  .by-table{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
  }
  .by-table th,td{
    border: 1px solid #ebeef5;
    padding: 5px 8px;
    text-align: center;
  }
  .print-none{
    display: none;
  }
  #app .main-container{
    margin: 0!important;
  }
  .el-card__body{
    padding: 0;
    margin: 0;
  }
  .by-print-page-test{
    display: block;
  }
}


// 更改element-ui样式
.el-main{
  overflow-x: hidden;
}
.el-container{
  height: 100%;
}
.el-header,.el-main{
  padding: 0;
}
.el-header{
  height: 50px!important;
  border-bottom: 1px solid #d8dce5;
  margin-bottom: 4px;
}
.el-menu-item, .el-submenu__title{
  height: 40px;
  line-height: 40px;
}
.el-table--small td, .el-table--small th{
  padding: 0;
}
.el-button{
  padding: 6px 12px!important;
}
.order-opt-button{
  padding: 2px 12px!important;
}
.el-card__body{
  padding: 10px;
}
.el-submenu .el-menu-item{
  height: 36px;
  line-height: 36px;
}
.el-popover-order{
  padding: 6px 6px 0 6px!important;
}
.el-dialog__headerbtn{
  top:14px!important;
}
.el-dialog__title{
  margin-bottom: 6px;
  display: inline-block;
}
.amap-sug-result{
  z-index: 99999999!important;
}
.w200{
  width: 200px;
}
.cell{
  text-align: center;
}
.fun-header{
  margin: 10px 10px 10px 16px;
}
.user-main-table .cell{
  line-height: 40px;
}
